import http from '../../util/request.js';
var WxParse = require('../../../wxParse/wxParse.js');
Page({
  data: {
    enterprise: []
  },
  onLoad() {
    //公司信息列表
    http.get('api', { 
      r:'home.configlist',
      config_group: 'enterprise' }).then(data => {
      this.setData({ enterprise: data });
      WxParse.wxParse('content', 'html', this.data.enterprise.enterprise_desc, this, 3);
    });
  },
  onShow() {

  },
  calling(e) {
    console.log(e.target.dataset.tel);
    wx.makePhoneCall({
      phoneNumber: e.target.dataset.tel
    })
  }

})